
#ifndef _MEMBER_BREALSLIDER_H_
#define _MEMBER_BREALSLIDER_H_

#include <BIcon>
#include <BImage>
#include <BRealSlider>

namespace BWE
{
	class member_BRealSlider
	{
	public:
		member_BRealSlider(BRealSlider* slider);
		~member_BRealSlider();

		BReal valueOfPoint(const BPoint& pos) const;
		void freshRects();

		BRealSlider*		boss;
		BReal				value;
		BReal				minimum;
		BReal				maximum;
		BReal				step;
		Orientation			orientation;
		int					grooveSize;
		BImageHolder		grooveImage;
		BSize				handleSize;
		BIconHolder			handleIcon;
		Graph				handleGraph;

		bool				dirty;
		State				handleState;
		BRect				handleRect;
		BRect				grooveRect;
	};
}

#endif